package com.ihelp.rest.mis.pojo;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 平台模块
*    
* 项目名称：rest   
* 类名称：Module      
* @version
 */
@SuppressWarnings("deprecation")
@Table(name = "MODULE")
@Entity
@org.hibernate.annotations.Entity(dynamicUpdate=true,dynamicInsert=true)
public class Module implements Serializable{

	private static final long serialVersionUID = 1L;

	@Id
    @Column(name = "UUID", length = 36)
	@GeneratedValue(generator = "paymentableGenerator")
	@GenericGenerator(name = "paymentableGenerator", strategy = "guid")
	private String uuid;
	
	/**
	 * 模块名称
	 */
	@Column(name = "NAME", length = 150)
	private String name;
	
	/**
	 * 模块访问路径
	 */
	@Column(name = "URL", length = 150)
	private String url;
	
	/**
	 * 模块状态
	 * 1:启用
	 * 0:关闭
	 */
	@Column(name = "STATUS", columnDefinition="int(3) default 1")
	private Integer status;
	
	/**
	 * 排序号
	 */
	@Column(name = "ORDER_CODE")
	private Integer orderCode; 
	
	/**
	 * 模块父UUID
	 * 默认值‘1’ 为顶级模块菜单
	 */
	@Column(name = "PUUID", columnDefinition="varchar(36) default '1'")
	private String puuid;

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getPuuid() {
		return puuid;
	}

	public void setPuuid(String puuid) {
		this.puuid = puuid;
	}

	public Integer getOrderCode() {
		return orderCode;
	}

	public void setOrderCode(Integer orderCode) {
		this.orderCode = orderCode;
	}
	
}
